package com.paraz.cst.impl;

import java.net.Socket;

import com.paraz.cst.CstInput;
import com.paraz.cst.CstOutput;
import com.paraz.cst.CstSocket;

/**
 * Real Socket implementation.
 * 
 * This needs to be inspected manually.
 * 
 * Wraps java.io Socket implementation.
 * 
 * @author mparaz
 *
 */
public class RealCstSocket implements CstSocket {

	private Socket socket;
	
	public RealCstSocket(Socket socket) {
		super();
		this.socket = socket;
	}

	public CstInput getCstInput() {
		return new RealCstInput(this);
	}

	public CstOutput getCstOutput() {
		return new RealCstOutput(this);
	}
	
	/**
	 * Socket, for same package only.
	 * @return
	 */
	Socket getSocket() {
		return socket;
	}

}
